package com.future.lock.mall.entity.beans;

import android.text.TextUtils;

import com.future.lock.common.Constants;

import java.io.Serializable;

/**
 * Created by yzh on 2017/12/23.
 */

public class GoodDetailsBean implements Serializable {

    /**
     * goods_id : 1
     * goods_name : 测试商品
     * head_img : http://www.baidu.com
     * adverts_img : http://www.baidu.com
     * price : 100.00
     * added_price : 10.00
     * goods_desc : 很吊的锁，你要不要
     */

    private String goods_id;
    private String goods_name;
    private String head_img;
    private String adverts_img;
    private float price;
    private float added_price;
    private String goods_desc;

    public String getGoods_id() { return goods_id;}

    public void setGoods_id(String goods_id) { this.goods_id = goods_id;}

    public String getGoods_name() { return goods_name;}

    public void setGoods_name(String goods_name) { this.goods_name = goods_name;}

    public String getHead_img() {
        if (!TextUtils.isEmpty(head_img) && !head_img.startsWith("http")) {
            return Constants.BASE_URL + head_img;
        }
        return head_img;
    }

    public void setHead_img(String head_img) { this.head_img = head_img;}

    public String getAdverts_img() { return adverts_img;}

    public void setAdverts_img(String adverts_img) { this.adverts_img = adverts_img;}

    public float getPrice() { return price;}

    public void setPrice(float price) { this.price = price;}

    public float getAdded_price() { return added_price;}

    public void setAdded_price(float added_price) { this.added_price = added_price;}

    public String getGoods_desc() { return goods_desc;}

    public void setGoods_desc(String goods_desc) { this.goods_desc = goods_desc;}
}
